package com.example.mvvm.pokemon.net

import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.Query

interface ApiService {

    @GET("toutiao/index")
    fun getNews(
        @Query("type") type : String ="top",
        @Query("page") page : Int = 1,
        @Query("page_size") page_size : Int = 30,
        @Query("is_filter")is_filter : Int = 0,
        @Query("key") key: String = "ab5c45593fc27ea0585ba6e48476c7c5"): Call<BaseResponse<NewsCard>>

}